<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/jsp/commons/taglibs.jsp"%>
<!-- 分页显示演示开始 -->
<form id="listForm" class="well form-search" action="${ctx}/adoms/customerInterviewDetail/list" method="get">
	<input type="hidden" name="pageNo" id="pageNo" value="${pageData.pagination.pageNo}" />
	<input type="hidden" name="fieldName" id="fieldName" value="${pageData.compositor.fieldName}" />
	<input type="hidden" name="compositorType" id="compositorType" value="${pageData.compositor.compositorType}" />
	<table class="table table-striped table-bordered table-condensed">
		<tr align="center">
			<th>
				客户名称
				<y:search fieldType="S" fieldList="customer" matchType="LIKE" className="input-medium search-query" />
				<button class="btn btn-small" onclick="search()" type="button">
					<i class="icon-search"></i>
					搜索
				</button>
				<a href="${ctx}/adoms/customerInterviewDetail/new" class="btn btn-small right">添加客户回访详情信息</a>
			</th>
		</tr>
	</table>
</form>
<table class="table table-striped table-bordered table-condensed">
	<thead>
		<tr>
			<th>#</th>
			<th>
				<a href="javascript:sort('customer')">客户名称</a>
			</th>
			<th>
				<a href="javascript:sort('interview')">所属记录</a>
			</th>
			<th>
				<a href="javascript:sort('coBrand')">合作品牌</a>
			</th>
			<th>
				<a href="javascript:sort('area')">区域</a>
			</th>
			<th>
				<a href="javascript:sort('monthPinTarget')">本月动销目标</a>
			</th>
			<th>
				<a href="javascript:sort('monthNewConsumerTarget')">本月新客目标</a>
			</th>
			<th>
				<a href="javascript:sort('displayLocation')">陈列位置</a>
			</th>
			<th>
				<a href="javascript:sort('salesNumber')">分销数</a>
			</th>
			<th>
				<a href="javascript:sort('helpSell')">助销</a>
			</th>
			<th>
				<a href="javascript:sort('hasPromotion')">是否有促销活动</a>
			</th>
			<th>
				<a href="javascript:sort('promotionContent')">促销活动内容</a>
			</th>
			<th>
				<a href="javascript:sort('hasTraining')">当日是否培训</a>
			</th>
			<th>
				<a href="javascript:sort('trainingContent')">培训内容</a>
			</th>
			<th>
				<a href="javascript:sort('hasSystem')">是否安装系统</a>
			</th>
			<th>
				<a href="javascript:sort('firstCompetProduct')">第一竞品</a>
			</th>
			<th>
				<a href="javascript:sort('firstCompetProductPromotion')">第一竞品促销活动</a>
			</th>
			<th>
				<a href="javascript:sort('secondCompetProduct')">第二竞品</a>
			</th>
			<th>
				<a href="javascript:sort('secondCompetProductPromotion')">第二竞品促销活动</a>
			</th>
			<th>
				<a href="javascript:sort('todayVisitFocus')">今日拜访重点</a>
			</th>
			<th>
				<a href="javascript:sort('actualresult')">实际达成情况</a>
			</th>
			<th>
				<a href="javascript:sort('visitedSummarize')">拜访总结</a>
			</th>
			<th>
				<a href="javascript:sort('nextTimeFocus')">下次拜访重点</a>
			</th>
			<th>
				<a href="javascript:sort('originalPicture')">进店时陈列照片</a>
			</th>
			<th>
				<a href="javascript:sort('competPicture')">竞品陈列照片</a>
			</th>
			<th>
				<a href="javascript:sort('clerkUser')">业务员</a>
			</th>
			<th>
				<a href="javascript:sort('visitDate')">拜访日期</a>
			</th>
			<th>
				<a href="javascript:sort('dynamicSalesNumber')">截止当日动销数</a>
			</th>
			<th>
				<a href="javascript:sort('lastNewConsumerNumber')">截止当日新客数</a>
			</th>
			<th>
				<a href="javascript:sort('displaySurface')">陈列面位</a>
			</th>
			<th>
				<a href="javascript:sort('distributionOpportunity')">分销机会</a>
			</th>
			<th>
				<a href="javascript:sort('hasUsedSysytem')">是否使用系统</a>
			</th>
			<th>
				<a href="javascript:sort('firstCompetPlace')">第一竞品陈列位</a>
			</th>
			<th>
				<a href="javascript:sort('secondCompetPlace')">第二竞品陈列位</a>
			</th>
			<th>
				<a href="javascript:sort('leaveShopPicture')">离店时陈列照片</a>
			</th>
			<th>
				<a href="javascript:sort('memo')">备注</a>
			</th>
			<th>操作</th>
		</tr>
	</thead>
	<tbody>
		<c:forEach var="entity" items="${pageData.result}" varStatus="index">
			<tr <c:if test="${!entity.visible}">bgcolor="#AFEEEE"</c:if>>
				<td>${index.index + 1}</td>
				<td>${entity.customer}</td>
				<td>${entity.interview.department.name} 采访 ${entity.interview.customer.name}</td>
				<td>${entity.coBrand.name}</td>
				<td>${entity.area}</td>
				<td>${entity.monthPinTarget}</td>
				<td>${entity.monthNewConsumerTarget}</td>
				<td>${entity.displayLocation}</td>
				<td>${entity.salesNumber}</td>
				<td>${entity.helpSell}</td>
				<td>${entity.hasPromotion?"是":"否"}</td>
				<td>${entity.promotionContent}</td>
				<td>${entity.hasTraining?"是":"否"}</td>
				<td>${entity.trainingContent}</td>
				<td>${entity.hasSystem?"是":"否"}</td>
				<td>${entity.firstCompetProduct}</td>
				<td>${entity.firstCompetProductPromotion}</td>
				<td>${entity.secondCompetProduct}</td>
				<td>${entity.secondCompetProductPromotion}</td>
				<td>${entity.todayVisitFocus}</td>
				<td>${entity.actualresult}</td>
				<td>${entity.visitedSummarize}</td>
				<td>${entity.nextTimeFocus}</td>
				<td>${entity.originalPicture}</td>
				<td>${entity.competPicture}</td>
				<td>${entity.clerkUser}</td>
				<td>${entity.visitDate}</td>
				<td>${entity.dynamicSalesNumber}</td>
				<td>${entity.lastNewConsumerNumber}</td>
				<td>${entity.displaySurface}</td>
				<td>${entity.distributionOpportunity}</td>
				<td>${entity.hasUsedSysytem?"是":"否"}</td>
				<td>${entity.firstCompetPlace}</td>
				<td>${entity.secondCompetPlace}</td>
				<td>${entity.leaveShopPicture}</td>
				<td>${entity.memo}</td>
				<td>
					<a href="${ctx}/adoms/customerInterviewDetail/edit/${entity.id}">修改</a> | <a href="${ctx}/adoms/customerInterviewDetail/delete/${entity.id}" confirm="删除后无法恢复,确定要删除吗?">刪除</a>
				</td>
			</tr>
		</c:forEach>
	</tbody>
</table>
<%@ include file="/WEB-INF/jsp/commons/pager.jsp"%>